<?php
$RowNews			= $news_class->GetByAll(3, 0, 1, 1);
?>
<div class="main db">
	<div class="main_left dib">
    	<div class="page db">
        	<div class="page_title icon_gt db"><span><?php echo $config_nc->AboutMe;?></span></div>
            <div class="page_content db">
            	<?php echo $About_me;?>
            </div><!--end page_content-->
        </div><!--end page-->

        <div class="page db">
        	<div class="page_title icon_gt db"><span><?php echo $config_nc->News_2;?></span></div>
            <?php 
			if(is_array($RowNews)){
				for($connecti=0;$connecti<count($RowNews);$connecti++){
                    $RowDetail	= $news_detail_class->GetByIdNews(1, 0, $RowNews[$connecti]['id_news'], $WEB_LANGUAGE);
			?>  
            <div class="page_content page_referral db">
            	<div class="referral_news db">
                	<a href="<?php echo $WEB_DOMAIN;?>/?u1=news-detail&u2=<?php echo $RowNews[$connecti]['id_news'];?>">
                    	<img class="thumb f-left" src="<?php echo $RowNews[$connecti]['image'];?>">
                    </a>
                    <div class="hotel_right db">
                        <h3><?php echo $RowDetail[0]['title'];?></h3>
                        <?php echo trim($func->DisplayWord($RowDetail[0]['content'],50));?>
                        <a class="xemthem" href="<?php echo $WEB_DOMAIN;?>/?u1=news-detail&u2=<?php echo $RowNews[$connecti]['id_news'];?>">Chi tiết</a>
                    </div>
             	</div>
            </div><!--end page_content-->
            <?php 
				} 
			}
			?>
        </div><!--end page-->

    </div><!--end main_left-->
    <div class="main_right dib"><span>
    	<?php include 'application/view/template/right.php';?>
    </span></div>
</div><!--end main-->
